package pe.com.bn.sach.domain;

/**
 * Bnchf07ItemId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf07ItemId implements java.io.Serializable {

	// Fields

	private Bnchf06Tabla bnchf06Tabla;
	private Long f07IdItem;

	// Constructors

	/** default constructor */
//	 add osw  06:31 p.m. 23/04/2008
	public Bnchf07ItemId() {
		bnchf06Tabla=new Bnchf06Tabla();
	}

	/** full constructor */
	public Bnchf07ItemId(Bnchf06Tabla bnchf06Tabla, Long f07IdItem) {
		this.bnchf06Tabla = bnchf06Tabla;
		this.f07IdItem = f07IdItem;
	}

	// Property accessors

	public Bnchf06Tabla getBnchf06Tabla() {
		return this.bnchf06Tabla;
	}

	public void setBnchf06Tabla(Bnchf06Tabla bnchf06Tabla) {
		this.bnchf06Tabla = bnchf06Tabla;
	}

	public Long getF07IdItem() {
		return this.f07IdItem;
	}

	public void setF07IdItem(Long f07IdItem) {
		this.f07IdItem = f07IdItem;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf07ItemId))
			return false;
		Bnchf07ItemId castOther = (Bnchf07ItemId) other;

		return ((this.getBnchf06Tabla() == castOther.getBnchf06Tabla()) || (this
				.getBnchf06Tabla() != null
				&& castOther.getBnchf06Tabla() != null && this
				.getBnchf06Tabla().equals(castOther.getBnchf06Tabla())))
				&& ((this.getF07IdItem() == castOther.getF07IdItem()) || (this
						.getF07IdItem() != null
						&& castOther.getF07IdItem() != null && this
						.getF07IdItem().equals(castOther.getF07IdItem())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf06Tabla() == null ? 0 : this.getBnchf06Tabla()
						.hashCode());
		result = 37 * result
				+ (getF07IdItem() == null ? 0 : this.getF07IdItem().hashCode());
		return result;
	}

}